package com.bawei.module_mine.model.api

import com.bawei.lib_net.entity.ResponseEntity
import com.bawei.module_mine.model.entity.CityEntity
import com.bawei.module_mine.model.entity.DistrictEntity
import com.bawei.module_mine.model.entity.ProvinceEntity
import retrofit2.http.GET
import retrofit2.http.Path

interface AddressRegionApi {
    @GET("/mall/userAddress/provinces")
    suspend fun getProvinces(): ResponseEntity<List<ProvinceEntity>>

    @GET("/mall/userAddress/byProvince/{provinceId}")
    suspend fun getCities(@Path("provinceId") provinceId: String): ResponseEntity<List<CityEntity>>

    @GET("/mall/userAddress/byCity/{cityId}")
    suspend fun getDistricts(@Path("cityId") cityId: String): ResponseEntity<List<DistrictEntity>>
} 